% if not categories == None and not categories == []: 
	<div class="widget widget-categories">
		<h3 class="widget-header">分类</h3>
		<div class="widget-content">
			<ul>
				 % for c in categories:
				     <li><a href="{{ config.search_url }}?type=category&value={{ c.name }}&start={{ config.start }}&limit={{ config.limit }}">{{ c.name }} ({{ c.count }})</a></li>
				 % end
			</ul>
		</div>
	</div>
% end
